package info.qingshui.browser.hk.index;

import java.util.Comparator;

public class URLInfoClickCountComparator implements Comparator<URLInfo>{

	@Override
	public int compare(URLInfo object1, URLInfo object2) {
		if ( object1.getClickCount() - object2.getClickCount() > 0 ) {
			return 1;
		} else if ( object1.getClickCount() - object2.getClickCount() < 0 ) {
			return -1;
		}
		return 0;
	}

}
